package com.yeqifu.sys.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.Accessors;

/*
 * @author 连安利
 * @since 2020-12-21
 */

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_shelf")
@ToString
public class Shelf {
    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private Integer wmsid;

    private Integer pid;
    /**
     * 是否展开，0不展开，1展开
     */
    private Integer open;

    private String region;

    private String type;

    private Integer capacity;

    private Integer total;
    /**
     * 排序码
     */
    private Integer ordernum;
    /**
     * 是否可用，0不可用，1可用
     */
    private Integer available;

    /**
     * 货架剩余容量
     * 剩余容量算法：根据商品ID查出商品类型，根据商品类型、仓库名称找到货架列表，在利用差值计算这些货架的剩余容量
     * */
    @TableField(exist = false)
    @ApiModelProperty("剩余容量")
    private Integer totalCapacity;

}
